Fully Qualified Name: | Laminas\Permissions\Rbac\Rbac |
Name | Description | Defined By |
---|---|---|
addRole() | Add a child. | Rbac |
getCreateMissingRoles() | Rbac | |
getRole() | Get a registered role by name | Rbac |
getRoles() | Return all the roles | Rbac |
hasRole() | Is a role registered? | Rbac |
isGranted() | Determines if access is granted by checking the role and child roles for permission. | Rbac |
setCreateMissingRoles() | Rbac |
Add a child.
Parameter Name | Type | Description |
---|---|---|
$role | string|\RoleInterface | |
$parents | null|array|\RoleInterface |
Returns:
Returns: void
Get a registered role by name
Parameter Name | Type | Description |
---|---|---|
$roleName |
Returns:
Return all the roles
Returns: \RoleInterface[]
Is a role registered?
Parameter Name | Type | Description |
---|---|---|
$role | \RoleInterface|string |
Returns:
Determines if access is granted by checking the role and child roles for permission.
Parameter Name | Type | Description |
---|---|---|
$role | \RoleInterface|string | |
$assertion | null|\AssertionInterface|callable | |
$permission |
Returns:
Parameter Name | Type | Description |
---|---|---|
$createMissingRoles |
Returns: void